<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>

<%@ Page CodeFile="SponsorSelectionPage.aspx.cs" Inherits="PHSRAG.Insight21.Humans.SponsorSelectionPage"
	Language="c#" MaintainScrollPositionOnPostback="true" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Sponsor / Funding</title>
	<link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<form id="sponsorSelectionPage" method="post" runat="server">
		<table class="Container">
			<tr>
				<td>
					<cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
					<cc2:SetFocus ID="setFocus" runat="server"></cc2:SetFocus>
					<asp:Panel ID="headerSection" runat="server">
						<table cellspacing="0" width="100%">
							<tr>
								<td>
									<cc1:Header ID="header" runat="server"></cc1:Header>
								</td>
							</tr>
							<tr style="display: none">
								<td>
									<cc1:HumansSubNavigation ID="humansSubNavigation" runat="server" Visible="False"></cc1:HumansSubNavigation>
								</td>
							</tr>
							<tr>
								<td>
									<cc1:HumansSubModuleNavigation ID="humansSubModNavigation" runat="server"></cc1:HumansSubModuleNavigation>
								</td>
							</tr>
						</table>
						<table cellspacing="0" width="100%">
							<tr>
								<td>
									<uc1:ProtocolDetailHeader ID="protocolDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
								</td>
							</tr>
						</table>
						<table class="PlaceBar" width="100%">
							<tr>
								<td>
									<cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
								</td>
							</tr>
						</table>
					</asp:Panel>
					<table>
						<tr>
							<td>
								<cc2:Annunciator ID="annunciator" runat="server" EnableViewState="False"></cc2:Annunciator>
							</td>
						</tr>
					</table>
					<br />
					<table cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td colspan="3">
								&nbsp; <strong>Sponsor / Funding</strong></td>
						</tr>
						<tr>
							<td colspan="3">
								&nbsp;
								<asp:Panel ID="sponsorDetailsPanel" runat="server">
									<table cellspacing="0" cellpadding="0" width="100%">
										<tr>
											<td style="width: 5%">
											</td>
											<td colspan="2">
												Select the type of sponsor:
											</td>
										</tr>
										<tr>
											<td style="width: 5%">
											</td>
											<td style="width: 90%">
												<asp:RadioButtonList ID="sponsorType" runat="server" EnableViewState="False" AutoPostBack="True"
													RepeatDirection="Vertical" OnSelectedIndexChanged="OnSponsorTypeChanged">
													<asp:ListItem Value="GovFoundation">Government / Foundation</asp:ListItem>
													<asp:ListItem Value="CorpSponsor">Corporate Sponsor</asp:ListItem>
													<asp:ListItem Value="InstAward">Institutional Award, e.g., Claflin Distinguished Scholar Award</asp:ListItem>
													<asp:ListItem Value="DeptFunds">Department Funds</asp:ListItem>
													<asp:ListItem Value="None">None</asp:ListItem>
												</asp:RadioButtonList></td>
											<td style="width: 5%">
											</td>
										</tr>
										<tr>
											<td>
												&nbsp;</td>
										</tr>
										<tr>
											<td>
											</td>
											<td colspan="2">
												<asp:Panel ID="searchPanel" runat="server" Visible="False">
													<table>
														<tr>
															<td>
																To search, select either full or short name (you must select one):
															</td>
														</tr>
														<tr>
															<td>
																<asp:RadioButtonList ID="nameType" runat="server" EnableViewState="False" AutoPostBack="True"
																	RepeatDirection="Vertical" OnSelectedIndexChanged="OnNameTypeSelectedIndexChanged">
																	<asp:ListItem Value="longName">Full Name, e.g., National Institutes of Health</asp:ListItem>
																	<asp:ListItem Value="shortName">Short Name, e.g., NIH</asp:ListItem>
																</asp:RadioButtonList></td>
														</tr>
														<tr>
															<td>
																&nbsp;</td>
														</tr>
														<tr>
															<td>
																Enter the name of the sponsor (you must enter at least the first character to search):
															</td>
														</tr>
														<tr>
															<td>
																<table>
																	<tr>
																		<td valign="top">
																			<asp:TextBox ID="sponsorName" runat="server" CssClass="FlatTextBox"></asp:TextBox>&nbsp;
																		</td>
																		<td valign="bottom">
																			<asp:ImageButton ID="searchSponsor" runat="server" ImageUrl="../Images/b_search.gif"
																				Visible="False"></asp:ImageButton>&nbsp;
																			<asp:RequiredFieldValidator ID="searchNameValidator" runat="server" ControlToValidate="sponsorName"
																				ErrorMessage="Please enter at least the first character to search"></asp:RequiredFieldValidator>
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
														<tr>
															<td>
																&nbsp;</td>
														</tr>
														<tr>
															<td align="left">
																<asp:Label ID="pickOne" runat="server" Visible="False"><span style="font-weight:bold">Search Results</span><br />Select Sponsor:</asp:Label></td>
														</tr>
														<tr>
															<td>
																<asp:ListBox ID="sponsorList" runat="server" CssClass="FlatDropDown" Rows="5" Visible="False">
																</asp:ListBox>
																<asp:RequiredFieldValidator ID="searchResultValidator" runat="server" ControlToValidate="sponsorList"
																	ErrorMessage="Please select a sponsor" InitialValue="-1"></asp:RequiredFieldValidator></td>
														</tr>
														<tr>
															<td>
																&nbsp;</td>
														</tr>
														<tr>
															<td>
																If the sponsor is not found or is not a Department Fund, click on the link below
																to enter sponsor information.
															</td>
														</tr>
														<tr>
															<td>
																<asp:HyperLink ID="addSponsorLink" runat="server" Enabled="False" NavigateUrl="http://phsresearchintranet.partners.org//PHS_eSubmissions/Sponsor_Subcon_Request.asp"
																	Target="_blank">Add a sponsor</asp:HyperLink></td>
														</tr>
													</table>
												</asp:Panel>
											</td>
										</tr>
									</table>
								</asp:Panel>
							</td>
						</tr>
						<tr>
							<td colspan="3">
								&nbsp;</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<table style="height: 10%" cellspacing="0" cellpadding="0" width="100%">
			<tr>
				<td style="width: 5%">
					&nbsp;</td>
				<td style="width: 95%">
					&nbsp;<asp:ImageButton ID="cancel" runat="server" ImageUrl="../Images/b_cancel.gif"
						CausesValidation="False"></asp:ImageButton>
					<asp:ImageButton ID="next" runat="server" ImageUrl="../Images/b_next.gif" Visible="False">
					</asp:ImageButton></td>
			</tr>
			<tr>
				<td>
					&nbsp;</td>
			</tr>
		</table>
	</form>
</body>
</html>
